package com.wzh.design.strategy.demo1;

/**
 * @description:
 * @author: WZH
 * @time: 2021/5/26 8:39
 */
public class RedHeadDuck extends Duck {

    @Override
    public void swim(){
        System.out.println("~~我不会游泳~~");
    }

    @Override
    public void display() {
        System.out.println("我是独一无二的，我是红头鸭。");
    }
}